const defaultState = {
    num: 1
}
export const reducers = (state = defaultState, action) => {
    console.log(action);
    const { type } = action;
    switch (type) {
        case 'numAdd':
            state.num++;
            console.log(defaultState.num);
            console.log(state);
            return state;
            break;

        default:
            break;
    }

}